﻿package com.ease.platform.access.service
{
	import com.ease.common.vo.Ordering;
	import com.ease.common.vo.Pagination;
	import com.ease.model.criteria.CriteriaParameter;
	import com.obas.flex.common.proxy.DefaultServiceProxy;

	public class DatabaseTableAccessService extends DefaultServiceProxy
	{
    	private static const SERVICE_NAME:String = "databaseTableAccessService";

  		public function DatabaseTableAccessService() {
     		super(SERVICE_NAME);
  		}

		/**
    */
		public function 
			/* flex: com.ease.model.DatabaseTable */ 
			/* java: com.ease.model.DatabaseTable */
		findByTableName(
 			tableName:String  /* java.lang.String */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("findByTableName", [tableName], callback, context);
 		}

		/**
    */
		public function 
			/* flex: mx.collections.ArrayCollection */ 
			/* java: java.util.List */
		findAll(
 			ordering:com.ease.common.vo.Ordering  /* com.ease.common.vo.Ordering */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("findAll", [ordering], callback, context);
 		}

		/**
    */
		public function 
			/* flex: com.ease.common.vo.Pagination */ 
			/* java: com.ease.common.vo.Pagination */
		findPagination(
 			criteriaParameter:com.ease.model.criteria.CriteriaParameter  /* com.ease.model.criteria.CriteriaParameter */,
 			pagination:com.ease.common.vo.Pagination  /* com.ease.common.vo.Pagination<> */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("findPagination", [criteriaParameter, pagination], callback, context);
 		}
	}
}